GtkMovementStep step,
gint count,
gboolean extend_selection);
-static void gtk_text_view_page_horizontally (GtkTextView *text_view,
- gint count,
- gboolean extend_selection);
static gboolean gtk_text_view_move_viewport (GtkTextView *text_view,
GtkScrollStep step,
gint count);
container_class->forall = gtk_text_view_forall;
klass->move_cursor = gtk_text_view_move_cursor;
- klass->page_horizontally = gtk_text_view_page_horizontally;
klass->set_anchor = gtk_text_view_set_anchor;
klass->insert_at_cursor = gtk_text_view_insert_at_cursor;
klass->delete_from_cursor = gtk_text_view_delete_from_cursor;
G_TYPE_INT,
G_TYPE_BOOLEAN);
- /**
- * GtkTextView::page-horizontally:
- * @text_view: the object which received the signal
- * @count: the number of @step units to move
- * @extend_selection: %TRUE if the move should extend the selection
- *
- * The ::page-horizontally signal is a
- * <link linkend="keybinding-signals">keybinding signal</link>
- * which can be bound to key combinations to allow the user
- * to initiate horizontal cursor movement by pages.
- *
- * This signal should not be used anymore, instead use the
- * #GtkTextview::move-cursor signal with the #GTK_MOVEMENT_HORIZONTAL_PAGES
- * granularity.
- */
- signals[PAGE_HORIZONTALLY] =
- g_signal_new (I_("page-horizontally"),
- G_OBJECT_CLASS_TYPE (gobject_class),
- G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
- G_STRUCT_OFFSET (GtkTextViewClass, page_horizontally),
- NULL, NULL,
- _gtk_marshal_VOID__INT_BOOLEAN,
- G_TYPE_NONE, 2,
- G_TYPE_INT,
- G_TYPE_BOOLEAN);
-
/**
* GtkTextView::move-viewport:
* @text_view: the object which received the signal
gtk_text_view_move_cursor_internal (text_view, step, count, extend_selection);
}
-static void
-gtk_text_view_page_horizontally (GtkTextView *text_view,
- gint count,
- gboolean extend_selection)
-{
- gtk_text_view_move_cursor_internal (text_view, GTK_MOVEMENT_HORIZONTAL_PAGES,
- count, extend_selection);
-}
-
-
static gboolean
gtk_text_view_move_viewport (GtkTextView *text_view,
GtkScrollStep step,
gint count,
gboolean extend_selection);
- /* FIXME should be deprecated in favor of adding GTK_MOVEMENT_HORIZONTAL_PAGES
- * or something in GTK 2.2, was put in to avoid adding enum values during
- * the freeze.
- */
- void (* page_horizontally) (GtkTextView *text_view,
- gint count,
- gboolean extend_selection);
-
/* move the "anchor" (what Emacs calls the mark) to the cursor position */
void (* set_anchor) (GtkTextView *text_view);